STEP 2: When you create your own quiz, you will already have the questions and answers planned out.

Make sure to type the question and all four answer options in one string.

  • Go to and drag String Variable to the bottom of your program.
  • Change the name to ques_1.
  • Question 1) is written on your Ticket. Change ques_1's value to the question and choices listed there.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)